﻿<Window x:Class="ifunction.Fiddler.Configurator.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:control="clr-namespace:ifunction.Fiddler.Configurator.Control"
        Title="Fiddler Simulator Configurator" Height="719.09" Width="735.388" FontFamily="Calibri" FontSize="15" ResizeMode="NoResize" Loaded="MainWindow_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="226*"/>
            <ColumnDefinition Width="503*"/>
        </Grid.ColumnDefinitions>
        <ListBox x:Name="list_Requests" HorizontalAlignment="Left" Margin="10,43,0,38" Width="207" SelectionChanged="list_Requests_SelectionChanged"/>
        <Label Content="Request List:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="28" Width="87" FontWeight="Bold" Foreground="#FF3399FF"/>
        <Button x:Name="btn_Refresh" Content="Refresh" HorizontalAlignment="Left" Margin="10,0,0,9" Width="100" Click="btn_Refresh_Click" Height="24" VerticalAlignment="Bottom"/>
        <Button x:Name="btn_New" Content="New" HorizontalAlignment="Left" Margin="117,0,0,9" Width="100" Height="24" VerticalAlignment="Bottom"/>
        <Label Content="Detail:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Grid.Column="1" Height="28" Width="50" FontWeight="Bold" Foreground="#FF3399FF"/>
        <Label Content="Name: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,38,0,0" VerticalAlignment="Top" Height="28" Width="54"/>
        <TextBox x:Name="text_Key" Grid.Column="1" Height="23" Margin="65,10,10,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Visibility="Hidden"/>
        <TextBox x:Name="text_Name" Grid.Column="1" Height="23" Margin="74,38,181,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <Label Content="Uri: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,66,0,0" VerticalAlignment="Top" Height="28" Width="36"/>
        <TextBox x:Name="text_TargetUri" Grid.Column="1" Height="46" Margin="74,66,10,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <TextBox x:Name="text_Referer" Grid.Column="1" Height="46" Margin="74,117,10,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <Label Content="Referer: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,117,0,0" VerticalAlignment="Top" Height="28" Width="62"/>
        <Label Content="Method: " Grid.Column="1" HorizontalAlignment="Left" Margin="327,33,0,0" VerticalAlignment="Top" Height="28" Width="66"/>
        <ComboBox x:Name="combo_Method" Grid.Column="1" Margin="0,37,10,0" VerticalAlignment="Top" AllowDrop="True" SelectedIndex="0" Height="24" HorizontalAlignment="Right" Width="95"/>
        <Label Content="Content Type:" Grid.Column="1" HorizontalAlignment="Left" Margin="9,163,0,0" VerticalAlignment="Top" Height="28" Width="95"/>
        <TextBox x:Name="text_ContentType" Grid.Column="1" Height="23" Margin="110,168,228,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <TextBox x:Name="text_Accept" Grid.Column="1" Height="23" Margin="344,168,10,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <Label Content="Accept: " Grid.Column="1" HorizontalAlignment="Left" Margin="280,163,0,0" VerticalAlignment="Top" Height="28" Width="59"/>
        <Label Content="Cookie: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,196,0,0" VerticalAlignment="Top" Height="28" Width="59"/>
        <TextBox x:Name="text_Cookie" Grid.Column="1" Height="60" Margin="74,196,10,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <Button x:Name="btn_Save" Content="Save" HorizontalAlignment="Left" Margin="10,0,0,9" Width="100" Grid.Column="1" Height="24" VerticalAlignment="Bottom" Click="btn_Save_Click"/>
        <Button x:Name="btn_Delete" Content="Delete" HorizontalAlignment="Left" Margin="115,0,0,9" Width="100" Grid.Column="1" Height="24" VerticalAlignment="Bottom"/>


        <Grid  x:Name="mask_RequestList" Margin="10,44,10,0" Height="519" VerticalAlignment="Top" Visibility="Collapsed">
            <control:LoadingMask Height="90" VerticalAlignment="Top"  Width="90" Margin="61,116,0,0" HorizontalAlignment="Left"/>
        </Grid>
        <Label Content="Need Keep Session:" Grid.Column="1" HorizontalAlignment="Left" Margin="10,428,0,0" VerticalAlignment="Top" Height="28" Width="147"/>
        <Label Content="Method: " Grid.Column="1" HorizontalAlignment="Left" Margin="327,433,0,0" VerticalAlignment="Top" Height="28" Width="66"/>
        <ComboBox x:Name="combo_KeepSession_Method" Grid.Column="1" Margin="0,433,10,0" VerticalAlignment="Top" AllowDrop="True" SelectedIndex="0" Height="24" HorizontalAlignment="Right" Width="95"/>
        <Label Content="Uri: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,461,0,0" VerticalAlignment="Top" Height="28" Width="36"/>
        <TextBox x:Name="text_KeepSession_TargetUri" Grid.Column="1" Height="46" Margin="74,462,10,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <TextBox x:Name="text_KeepSession_Referer" Grid.Column="1" Height="46" Margin="74,513,10,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <Label Content="Referer: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,508,0,0" VerticalAlignment="Top" Height="28" Width="62"/>
        <Label Content="Content Type:" Grid.Column="1" HorizontalAlignment="Left" Margin="9,559,0,0" VerticalAlignment="Top" Height="28" Width="95"/>
        <TextBox x:Name="text_KeepSession_ContentType" Grid.Column="1" Height="23" Margin="110,564,228,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <TextBox x:Name="text_KeepSession_Accept" Grid.Column="1" Height="23" Margin="344,564,10,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <Label Content="Accept: " Grid.Column="1" HorizontalAlignment="Left" Margin="280,559,0,0" VerticalAlignment="Top" Height="28" Width="59"/>
        <Label Content="Cookie: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,592,0,0" VerticalAlignment="Top" Height="28" Width="59"/>
        <TextBox x:Name="text_KeepSession_Cookie" Grid.Column="1" Margin="74,592,10,40" TextWrapping="Wrap"/>
        <Button x:Name="btn_FillByRaw" Content="Fill Parameters By Raw" Margin="220,0,10,9" Grid.Column="1" Click="btn_FillByRaw_Click" Height="24" VerticalAlignment="Bottom"/>
        <Label Content="Schedule: " HorizontalAlignment="Left" Margin="9,320,0,0" VerticalAlignment="Top" Grid.Column="1" Height="28" Width="73" FontWeight="Bold" Foreground="#FF3399FF"/>
        <ComboBox x:Name="combo_Interval" Grid.Column="1" Margin="162,433,0,0" VerticalAlignment="Top" AllowDrop="True" SelectedIndex="0" SelectionChanged="combo_Interval_SelectionChanged" Height="24" HorizontalAlignment="Left" Width="160"/>
        <Label Content="User-Agent: " Grid.Column="1" HorizontalAlignment="Left" Margin="9,256,0,0" VerticalAlignment="Top" Height="28" Width="83"/>
        <TextBox x:Name="text_UserAgent" Grid.Column="1" Height="59" Margin="97,261,10,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
        <ComboBox x:Name="combo_ScheduleType" Grid.Column="1" Margin="0,325,288,0" VerticalAlignment="Top" AllowDrop="True" SelectedIndex="0" Height="24" HorizontalAlignment="Right" Width="118" SelectionChanged="combo_ScheduleType_SelectionChanged"/>
        <Label Content="Daily Times: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,353,0,0" VerticalAlignment="Top" Height="28" Width="83"/>
        <TextBox x:Name="text_DailyTimes" Grid.Column="1" Height="28" Margin="97,353,10,0" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True"/>
        <Button x:Name="btn_EditTimes" Content="Edit Daily Times" Grid.Column="1" HorizontalAlignment="Left" Margin="220,325,0,0" VerticalAlignment="Top" Width="173" Click="btn_EditTimes_Click"/>
        <Label Content="End Date: " Grid.Column="1" HorizontalAlignment="Left" Margin="10,395,0,0" VerticalAlignment="Top" Height="28" Width="83"/>
        <control:DateTimePicker x:Name="UC_EndStamp" Grid.Column="1" HorizontalAlignment="Left" Margin="97,386,0,0" VerticalAlignment="Top"/>

    </Grid>
</Window>
